Cloud Design Patterns
About the Example
|
This document describes the Competing Consumers Pattern example from the guide Cloud Design Patterns (see http://aka.ms/Cloud-Design-Patterns).
Before you start
Ensure that you have installed all of the software prerequisites. For details see the Release Notes.
The example demonstrates operational aspects of applications running in Windows Azure. Therefore, you will need to use the diagnostics tools in order to understand how the code sample works. You must ensure that the web and worker roles in the solution are configured to use the diagnostics mechanism. If not, you will not see the trace information generated by the example.
About the Example
This example contains two components: the Sender worker role is responsible for sending messages to a Service Bus queue, and the Receiver worker role retrieves messages from the queue and processes them. The Receiver worker role is configured to run with two instances to simulate competition between consumers.
Running the Example
You can run this example locally in the Visual Studio Windows Azure emulator. You can also run this example by deploying it to a Windows Azure Cloud Service.